import Login from './views/Login.vue'
import NotFound from './views/404.vue'
import Home from './views/Home.vue'



import ShopRegister from './views/org/ShopRegister.vue'

import echarts from './views/charts/echarts.vue'


/**
 * 这个下面就是我们自定义的组件
 */
import Department from './views/org/Department.vue'

let routes = [
    {
        path: '/',
        component: Home,
        name: '管理',
        iconCls: 'el-icon-message',//图标样式class
        children: [
            { path: '/dept', component: Department, name: '员工管理' },

        ]
    },
    {
        //前端访问路径
        path: '/login',
        //对应的组件或者叫模板
        component: Login,
        //模板展示的名字
        name: 'Login',
        //hidden 隐藏
        hidden: true
    },{
        //前端访问路径
        path: '/shopRegister',
        //对应的组件或者叫模板
        component: ShopRegister,
        //模板展示的名字
        name: '商家入驻',
        //hidden 隐藏
        hidden: true
    },
    {
        path: '/404',
        component: NotFound,
        name: '',
        hidden: true
    },

    {
        path: '/',
        component: Home,
        name: 'Charts',
        iconCls: 'fa fa-bar-chart',
        children: [
            { path: '/echarts', component: echarts, name: 'echarts' }
        ]
    },
    {
        path: '*',
        hidden: true,
        redirect: { path: '/404' }
    }
];

export default routes;